package cn.juque.systemservice;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author nuoka
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableCaching
@EnableDubbo
@EnableAsync
@ImportResource(value = {"classpath:dubbo-provider.xml", "classpath:dubbo-consumer.xml"})
public class SystemServiceApplication extends SpringBootServletInitializer {

  public static void main(String[] args) {
    SpringApplication.run(SystemServiceApplication.class, args);
  }
}
